<template>
    <div>
        我是商品列表
        <van-button @click="test" >测试</van-button>
        <span>{{$store.getters.sum}}</span>
    </div>
</template>

<script>

export default {
    name: "GoodList",
    data(){
        return{

        }
    },
    methods:{

        test(){
            //this.$store.dispatch('jia',1)
        },

        getGoodList(){
           this.$myHttpGet(this.$myUrl.goodsLst).then(res=>{
               console.log(res)
           })
        }
    },
    mounted() {
        this.getGoodList()
    }

}
</script>

<style scoped>

</style>
